What do you suspect will be used to add another choice to the program?
Another IF structure will be added.
Remember the waiter trying to discover your choice of beverage?
As many choices as needed can be accomodated by adding IFs.
In a program, these IFs will be nested.
Here is one way the new selection could be added to the
airfare program:
PRINT "Enter full fare"
INPUT FARE
PRINT "Enter age"
INPUT AGE
'
'Calculate discount based on age
IF AGE < 12 THEN
LET RATE = 0.0
ELSE
IF AGE < 24 THEN
LET RATE = 0.70
ELSE
IF __________________ THEN
LET RATE = 1.0
ELSE
LET RATE = 0.75
END IF
END IF
END IF
'Calculate fare
PRINT "Your fare is:", FARE * RATE
END
The program is starting to look a little ugly, but you can probably answer this question if you focus on just the new nested IF. Fill in the blank so that seniors 65 and older get the 0.75 rate.